#ifndef HEADERFORM_H
#define HEADERFORM_H

#include <QWidget>

class QStackedWidget;
class QLabel;
class QPushButton;
class QToolButton;

class HeaderForm : public QWidget
{
    Q_OBJECT
public:
    explicit HeaderForm(QWidget *parent = 0);
    ~HeaderForm();
signals:
    void sigSettings();
    void sigHelp();
    void sigUser();
    void sigLogout();
protected:
    void paintEvent(QPaintEvent *event);
private slots:
    void slotSettings();
    void slotHelp();
    void slotUser();
    void slotLogout();
private:
    bool m_bSettingsBtnDown,m_bHelpBtnDown;
    QLabel *m_pLogoLabel;
    QPushButton *m_pSettingButton,*m_pHelpButton,
    *m_pUserButton,*m_pLogoutButton;
};

class ToolsForm:public QWidget
{
    Q_OBJECT
public:
    ToolsForm(QWidget *parent=0);
    ~ToolsForm();
protected:
    void paintEvent(QPaintEvent *event);
private slots:
    void slotUserPressed();
    void slotUserReleased();
    void slotInputPressed();
    void slotInputReleased();
    void slotOutputPressed();
    void slotOutputReleased();
    void slotPlanPressed();
    void slotPlanReleased();
    void slotSeniorPressed();
    void slotSeniorReleased();
private:
    void initSettings();

    QStackedWidget *m_pStackedWdg;
    QToolButton *m_pUserButton,*m_pInputButton,*m_pOutputButton,
    *m_pPlanButton,*m_pSeniorButton;
};


#endif // HEADERFORM_H
